home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-06-25 | 510 b | 16 lines |
- CFLAGS = -O2 -c -I ../include/ -D __NOLIBBASE__
- LFLAGS = -noixemul -nostartfiles -s
-
- ODIR = T: # the directory, where object files are stored
- DDIR = ../libs/ # the directory, where destination library is stored
-
- $(DDIR)example.library: $(ODIR)libinitgcc.o $(ODIR)examplefuncsgcc.o
- gcc $(LFLAGS) -o $@ $(ODIR)libinitgcc.o $(ODIR)examplefuncsgcc.o
-
- $(ODIR)libinitgcc.o: libinfo.h libinit.c
- gcc $(CFLAGS) -o $@ libinit.c
-
- $(ODIR)examplefuncsgcc.o: libinfo.h examplefuncs.c
- gcc $(CFLAGS) -o $@ examplefuncs.c
-
-